
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Userrole 分页列表
*/
export function getUserrolePagination(data: any) {
  return axios.get(`${context}/userrole/pagination`, { params: data });
}


/**
 * 获取 Userrole 所有数据
*/
export function getUserroleAllList(data: any) {
  return axios.get(`${context}/userrole/all`, { params: data });
}


/**
 * 获取 Userrole 详情
*/
export function getUserroleDetailById(id: any) {
  return axios.get(`${context}/userrole/${id}`, { params:{id} });
}


/**
 * 新增 Userrole
*/
export function addUserrole(data: any) {
  return axios.post(`${context}/userrole`, data);
}

/**
 * 修改 Userrole
*/
export function updateUserrole(data: any) {
  return axios.put(`${context}/userrole`, data);
}

/**
 * 删除 Userrole
*/
export function batchRemoveUserrole(data: any) {
  return axios.post(`${context}/userrole/batchRemove`, data);
}

    